package com.ala4.oxcafe.entity;

import com.ala4.oxcafe.annotation.AttachmentsUrl;
import com.ala4.oxcafe.core.entity.AttachmentEntity;
import com.ala4.oxcafe.core.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author PING
 * @date 2025/8/16 18:53
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("decoration_config")
@Schema(title = "装修配置")
public class DecorationConfig extends BaseEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField("home_banner")
    @Schema(description = "轮播图", type = "list", implementation = AttachmentEntity.class)
    @AttachmentsUrl
    private String homeBanner;

    @TableField("image_cases")
    @Schema(description = "图片案例", type = "list", implementation = AttachmentEntity.class)
    @AttachmentsUrl
    private String imageCases;

    @TableField("video_cases")
    @Schema(description = "视频案例", type = "list", implementation = AttachmentEntity.class)
    @AttachmentsUrl
    private String videoCases;

    @TableField("brand_videos")
    @Schema(description = "品牌视频", type = "list", implementation = AttachmentEntity.class)
    @AttachmentsUrl
    private String brandVideos;

    @TableField("about_us")
    @Schema(description = "关于我们表(富文本内容)")
    private String aboutUs;
}